package com.shark.teach;

/**
 * @auther shark
 * @create 2024-10-07 21:24
 */
public class CodeAnalyze
{
    public void doSth()
    {
        synchronized (this) {   //lock

            System.out.println("11111");
            synchronized (this){

            }
        }   //unlock
    }

    //javap -c CodeAnalyze.class
    public static void main(String[] args) {
        System.out.println("先运行一下 main 方法以确保当前类编译.....");
    }
}
